﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SweetSQL.Data
{
    internal sealed class TypeInfo
    {
        public TypeInfo()
        {
            Tables = new List<TableInfo>();
            TableLookup = new Dictionary<string, TableInfo>();
        }

        public List<TableInfo> Tables
        {
            get;
            private set;
        }

        public Dictionary<string, TableInfo> TableLookup
        {
            get;
            private set;
        }

        public void Add(TableInfo info)
        {
            Tables.Add(info);
            TableLookup.Add(info.Name, info);
        }
    }
}
